package org.library.controller;

import lombok.RequiredArgsConstructor;
import org.library.domain.SysBook;
import org.library.mapper.BookMapper;
import org.library.mapper.UserMapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Chen
 * @since 2023/6/13 16:38
 */

@Component
@RequiredArgsConstructor
public class BookController {

    private final BookMapper bookMapper;

    public List<SysBook> list() {
        return bookMapper.selectList(null);
    }

}
